<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http：//www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http：//www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>登录</title>
    <link rel="stylesheet" href="__HCSS__/public.css" />
    <link rel="stylesheet" href="__HCSS__/login.css" />
	<script async type="text/javascript" src="__HJS__/jquery-1.8.3.min.js"></script>
    <!--整站公用js-->
    <script async type="text/javascript" src="__HJS__/common.js" ></script>
	<script type='text/javascript' src="__HJS__/jquery.js" ></script>
<script>
	$().ready(function(){
		//获取用户提交的数据
		//点击按钮事件
		$(':button').bind('click',function(){
		var username=$('#username').val();
		var password=$('#password').val();
		var auto=$('#auto').val();
		//生成JSON数据
		var data={
			auto:auto,
			name:username,
			pwd:password
		};
		$.post('__GROUP__/Register/check_login',data,function(msg){
			$(msg.data).each(function(i,item){
					var count=item.count;
					//失败
					if(count==0){
						alert('您输入的用户名或者密码有误，请重新输入');
					}
					//如果数据库存在有该数据，登录成功
					if(count==1){
					//重新保存数据
					$.post('__GROUP__/Register/cr_login',data,function(msg){},'json');
					//跳转到首页
					location.href="__GROUP__/Index/index";
					}
				});
		},'json');
		});
		
	});
	
	
</script>
</head>

<body>
        <div class="header">
            <div class="header_container header_container2">
                <!--头部开始-->
                <div class="top_bar clear">
                    <!--头部小导航-->
                    <div class="welcom fl">欢迎光临LEISUPET SHOP!</div>
                    <ul class="top_links fr">
                        <li>
                            <a href="index.html" title="首页">首页</a>
                        </li>
                       
                        <li>
                            <a href="__GROUP__/Shopcart/shopcart" title="购物车">购物车</a>
                        </li>
                        <li>
                            <a href="register.html" title="注册">注册</a>
                        </li>
                        <li  class="highlight">
                            <a href="__GROUP__/Register/login" title="登录">登录</a>
                        </li>
                    </ul>
                    <!--头部小导航结束-->

                </div>
        		<!-- 头部结束 -->
            </div>
        </div>
        <div class="zclogo">
        <a href="index.html" class="fl zclogoin"><img src="__HIMG__/logo.png"></a> <span class="fl">欢迎登录</span> 
        </div>
        
<div id="denglu">
    <div class="denglu">
    	<div class="dl_l">
        	<a href="#"><img src="__HIMG__/adlogin.jpg" width="420" /></a>
        </div>
    	<div class="dl_r">
    	<form class="zc_l_out2" method="post" action="__GROUP__/Register/cr_login">
            <ul class="zc_l" style="float：left;">
                <li class="dl_list">
                    <span class="block">
                     邮箱/用户名/已验证手机
                    </span>
                        <input id="username" type="text" name="username" class="text01" value="" />
                </li>
                <li class="dl_list">
                    <span class="block">
                     密码
                    </span>
                        <input id="password" type="password" name="password" class="text01 text02" value="" />
                </li>
                <li class="dl_list dl_zddl">
                	<input type="checkbox" id="auto" name="auto" value="1"/> <span>自动登录</span>
                    <a class="wjmima" href="#">忘记密码？</a><a class="zhuce red" href="register.html">免费注册</a>
                </li>
                <li class="dl_list dl_dl_out">
                	<input type="button" value="" name="button" class="dl_dl" />
                </li>
                <li class="dl_list">
                	<span>合作伙伴账号登录： </span>
                </li>
                <li class="dl_list">
                	<a href="#"> QQ </a><span>&nbsp;|&nbsp;</span>
                	<a href="#"> 新浪微博 </a><span>&nbsp;|&nbsp;</span>
                	<a href="#"> 更多 </a><span>&nbsp;|&nbsp;</span>
                </li>
            </ul>
	  </form>
      
        </div>
        
    </div>

</div>
            <!-- 底部 -->
            <div class="footer_container">

                <div class="footer">
                    <ul class="footer_links">
                        <li>
                            <span>收藏本店</span>
                            <ul>
                                <li>
                                    <a href="goods_details.html">服装</a>
                                </li>
                                <li>
                                    <a href="goods_details.html">鞋子</a>
                                </li>
                                <li>
                                    <a href="goods_details.html">包包</a>
                                </li>
                                <li>
                                    <a href="goods_details.html">装饰品</a>
                                </li>
                                <li>
                                    <a href="goods_details.html">channel</a>
                                </li>
                                <li>
                                    <a href="goods_details.html">prada</a>
                                </li>
                                <li>
                                    <a href="goods_details.html">LV</a>
                                </li>
                            </ul>
                        </li>
                        <li class="seperator">
                            <span>出售的品牌</span>
                            <ul>
                                <li>
                                    <a href="goods_details.html">Elle</a>
                                </li>
                                <li>
                                    <a href="goods_details.html">Reallxe</a>
                                </li>
                                <li>
                                    <a href="goods_details.html">Fabric</a>
                                </li>
                                <li>
                                    <a href="goods_details.html">Mayflower</a>
                                </li>
                                <li>
                                    <a href="goods_details.html">Levis Strauss</a>
                                </li>
                                <li>
                                    <a href="goods_details.html">Anzonica</a>
                                </li>
                                <li>
                                    <a href="goods_details.html">Reallxe</a>
                                </li>
                                <li>
                                    <a href="goods_details.html">Fabric</a>
                                </li>
                            </ul>
                        </li>
                        <li>
                            <span>客户服务</span>
                            <ul>
                                <li>
                                    <a href="#">帮助</a>
                                </li>
                                <li>
                                    <a href="#">速递</a>
                                </li>
                                <li>
                                    <a href="#">退换货</a>
                                </li>
                                <li>
                                    <a href="#">付款方式</a>
                                </li>
                                <li>
                                    <a href="#">订单跟踪</a>
                                </li>
                                <li>
                                    <a href="#">礼物包选项</a>
                                </li>
                                <li>
                                    <a href="#">国际服务</a>
                                </li>
                                <li>
                                    <a href="#">退运险</a>
                                </li>
                            </ul>
                        </li>
                        <li>
                            <span>个人账户</span>
                            <ul>
                                <li>
                                    <a href="#">个人账户信息</a>
                                </li>
                                <li>
                                    <a href="#">用户密码</a>
                                </li>
                                <li>
                                    <a href="#">订单历史</a>
                                </li>
                                <li>
                                    <a href="#">付款方式</a>
                                </li>
                                <li>
                                    <a href="#">我的收货地址</a>
                                </li>
                                <li>
                                    <a href="#">我的通知</a>
                                </li>
                            </ul>
                        </li>
                    </ul>

                </div>
            </div>
            <!-- 底部 结束 -->
</body>
</html>
